#include<iostream>
#include<stdlib.h>
using namespace std;

char* strcat(char *a,char *b){
    char *temp;
    int l=0,a1=0,b1=0;
    while(a[a1]!='\0')
        a1++;
    l+=a1;
    while(b[b1]!='\0')
        b1++;
    l+=b1;
    temp=(char *)malloc(sizeof(char)*(l+1));
    for(int i=0;i<a1;i++){
        temp[i]=a[i];
    }
    for(int i=a1,j=0;i<l;i++){
        temp[i]=b[j++];
    }
    temp[l]='\0';
    return temp;
}
int main(){
    char he[6];
    char wo[6];
    cin>>he;
    cin>>wo;
    char *t;
    t=strcat(he,wo);
    cout<<t;
    free(t);
}
